import edge_tts
from utils import temp_filename

# zh-CN-XiaoxiaoNeural  Female  News, Novel     Warm
# zh-CN-XiaoyiNeural    Female  Cartoon, Novel  Lively
# zh-CN-YunjianNeural   Male    Sports, Novel   Passion
# zh-CN-YunxiNeural     Male    Novel           Lively, Sunshine
# zh-CN-YunxiaNeural    Male    Cartoon, Novel  Cute
# zh-CN-YunyangNeural   Male    News            Professional, Reliable
_voice = "zh-CN-XiaoyiNeural"

text = "岁月献给小酒杯，借钱九出十三归。"

communicate = edge_tts.Communicate(text, _voice)
communicate.save_sync(temp_filename("edgetts"))
# communicate 有 stream 方法，可以通过它来生成音频的字节表示。具体请参见 save 方法的实现。
